function HandleDialogBlog(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

HandleDialogBlog.prototype._createElements = function() {
  var _self = this;

  this._gui.blog1.checked = true;
  this._item._method = '{{$smarty.const.BLOG1|escape:javascript}}';
  this._gui.blog1.onclick = function() { _self._item._method = '{{$smarty.const.BLOG1|escape:javascript}}';
                                         _self._gui.text.value = '';
                                       };
  this._gui.blog2.onclick = function() { _self._item._method = '{{$smarty.const.BLOG2|escape:javascript}}';
                                         _self._gui.text.value = '';
                                       };
  if (this._item && this._item.how == '{{$smarty.const.BLOG2|escape:javascript}}') {
    this._gui.blog2.checked = true;
    this._item._method = this._item.how;
  }
  
  this._gui.other.onclick = function() { _self._item._method = _self._gui.text.value; };
  this._gui.text.onclick = function() { _self._gui.other.click();
                                        this.focus();
                                      };
  this._gui.text.onchange = function() { _self._item._method = this.value; };
  if (this._item && this._item.how != '{{$smarty.const.BLOG1|escape:javascript}}' && this._item.how != '{{$smarty.const.BLOG2|escape:javascript}}' && this._item.how != '') {
    this._gui.other.checked = true;
    this._gui.text.value = this._item.how;
    this._item._method = this._item.how;
  }
};